package com.opener.web.push.model;

import com.opener.common.model.Model;
import java.util.Date;
import java.util.Map;

/**
 * Created by baboy on 25/07/2017.
 */
public class PushApp extends Model {
    private static final long serialVersionUID = -1051762576867757435L;

    public static String APP_TYPE_SMS = "sms";
    public static String APP_TYPE_WECHAT = "wechat";
    public static String APP_TYPE_EMAIL = "email";

    public static String APP_SP_RL_SMS = "ronglian";
    public static String APP_SP_WECHAT = "wechat";
    public static String APP_SP_SC_EMAIL = "sendcloud-email";
    public static String APP_SP_SC_SMS = "sendcloud-sms";
    public static String APP_SP_GOIP_SMS = "goip-sms";
    private Integer id;
    private String sp;
    private String type;
    private String alias;
    private String appId;
    private String appSecret;
    private Map conf;
    private Integer createUid;
    private Date createTime;
    private String updateUid;
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSp() {
        return sp;
    }

    public void setSp(String sp) {
        this.sp = sp;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public Map getConf() {
        return conf;
    }

    public void setConf(Map conf) {
        this.conf = conf;
    }

    public Integer getCreateUid() {
        return createUid;
    }

    public void setCreateUid(Integer createUid) {
        this.createUid = createUid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUid() {
        return updateUid;
    }

    public void setUpdateUid(String updateUid) {
        this.updateUid = updateUid;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "PushApp{" +
                "id=" + id +
                ", sp='" + sp + '\'' +
                ", type='" + type + '\'' +
                ", alias='" + alias + '\'' +
                ", appId='" + appId + '\'' +
                ", appSecret='" + appSecret + '\'' +
                ", conf=" + conf +
                ", createUid=" + createUid +
                ", createTime=" + createTime +
                ", updateUid='" + updateUid + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}
